package com.gzy.cbrsystem.insomnia.action.reasoning;

import java.util.List;

import com.gzy.cbrsystem.insomnia.InsomniaBasicInfo;
import com.gzy.cbrsystem.insomnia.InsomniaBasicInfoDAO;
import com.gzy.cbrsystem.insomnia.util.Insomnia;
import com.gzy.cbrsystem.insomnia.util.InsomniaDAO;
import com.opensymphony.xwork2.ActionSupport;


public class GetUnsolvedAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected List<String> caseIdList;
	public List<String> getCaseIdList() {
		return caseIdList;
	}

	public void setCaseIdList(List<String> caseIdList) {
		this.caseIdList = caseIdList;
	}
	protected InsomniaBasicInfo insomniaBasicInfo;
	protected InsomniaBasicInfoDAO insomniaBasicInfoDAO;
	
	
	public InsomniaBasicInfo getInsomniaBasicInfo() {
		return insomniaBasicInfo;
	}

	public void setInsomniaBasicInfo(InsomniaBasicInfo insomniaBasicInfo) {
		this.insomniaBasicInfo = insomniaBasicInfo;
	}

	public InsomniaBasicInfoDAO getInsomniaBasicInfoDAO() {
		return insomniaBasicInfoDAO;
	}

	public void setInsomniaBasicInfoDAO(InsomniaBasicInfoDAO insomniaBasicInfoDAO) {
		this.insomniaBasicInfoDAO = insomniaBasicInfoDAO;
	}
	public String execute() throws Exception {
		List findByIssolved = this.getInsomniaBasicInfoDAO().findByIssolved(Boolean.FALSE);
		this.setCaseIdList(findByIssolved);
		return SUCCESS;
	}
}

